package com.qf.spring2202.proxypattern.service.impl;

import com.qf.spring2202.proxypattern.service.UserService;

public class UserServicImpl implements UserService {
    @Override
    public void helloUser() {
        System.out.println("UserServicImpl 被调用了");
        try {
            Thread.sleep(300);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    @Override
    public void getUserByName(String name) {
        System.out.println("UserServicImpl:getUserByName================="+name);
        try {
            Thread.sleep(500);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
